7e20b9aca86b3c685db71ffc30a6a4d92ef17c56,src/peergos/server/tests/UserTests.java,UserTests,publicLinkToDir,#,329

Before Change


        String anotherDirName = "anotherDir";
        subdir.mkdir(anotherDirName, context, false).get();
        FileTreeNode anotherDir = context.getByPath("/" + username + "/" + dirName + "/" + anotherDirName).get().get();
        anotherDir.uploadFile(filename, new AsyncReader.ArrayBacked(data), 0, data.length, context, l -> {}, context.fragmenter());
        long t2 = System.currentTimeMillis();
        String path = "/" + username + "/" + dirName + "/" + anotherDirName;
        FileTreeNode theDir = context.getByPath(path).get().get();

After Change


        String anotherDirName = "anotherDir";
        subdir.mkdir(anotherDirName, context, false).get();
        FileTreeNode anotherDir = context.getByPath("/" + username + "/" + dirName + "/" + anotherDirName).get().get();
        anotherDir.uploadFile(filename, new AsyncReader.ArrayBacked(data), 0, data.length, context, l -> {}, context.fragmenter()).get();
        long t2 = System.currentTimeMillis();
        String path = "/" + username + "/" + dirName + "/" + anotherDirName;
        FileTreeNode theDir = context.getByPath(path).get().get();